public class Sum {
    public static  int sum(int n){
        if(n>10){
            return 0;
        }else {
            return n+sum(n+1);
        }

    }
    public static void main(String[] args) {
        int n=1;
        int ret= sum(n);
        System.out.println(ret);
    }
}
